/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.teste.entity;

import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author kleber
 */
@Entity
public class Sprint {
    
    @Id
    @GeneratedValue
    private Long Id;
    
    private String descricao;
    
    @Temporal(TemporalType.DATE)
    private Date dataInicial;
    
    @Temporal(TemporalType.DATE)
    private Date dataFinal;
        
    private int numero;
    
    @OneToMany(targetEntity=Historia.class)
    private List<Historia> historiaList;
    
    @Enumerated(EnumType.ORDINAL)
    private SituacaoSprint situacao;

    public Long getId() {
        return Id;
    }

    public void setId(Long Id) {
        this.Id = Id;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public Date getDataInicial() {
        return dataInicial;
    }

    public void setDataInicial(Date dataInicial) {
        this.dataInicial = dataInicial;
    }

    public Date getDataFinal() {
        return dataFinal;
    }

    public void setDataFinal(Date dataFinal) {
        this.dataFinal = dataFinal;
    }

    public int getNumero() {
        return numero;
    }

    public void setNumero(int numero) {
        this.numero = numero;
    }

    public List<Historia> getHistoriaList() {
        return historiaList;
    }

    public void setHistoriaList(List<Historia> historiaList) {
        this.historiaList = historiaList;
    }

    public SituacaoSprint getSituacao() {
        return situacao;
    }

    public void setSituacao(SituacaoSprint situacao) {
        this.situacao = situacao;
    }
       
    
}
